﻿namespace fleetIt.Core
{
    using System;
    using System.Collections.Generic;
    using fleetIt.DO;

    public class DistinctFleetComparer : IEqualityComparer<Fleet>
    {
        #region IEqualityComparer<Fleet> Members

        public bool Equals(Fleet x, Fleet y)
        {
            return x.id == y.id;
        }

        public int GetHashCode(Fleet obj)
        {
            return obj.id.GetHashCode();
        }

        #endregion
    }
}
